<?php

class Bootstrap extends Zend_Application_Bootstrap_Bootstrap {

    protected function _initAutoload() {
        $autoloader = new Zend_Application_Module_Autoloader(array(
                        'namespace' => 'Default_',
                        'basePath'  => dirname(__FILE__),
        ));
        return $autoloader;
    }

    protected function _initHelpers() {
        Zend_Controller_Action_HelperBroker::addPrefix('Tc_Helper');
    }

    protected function _initAcl() {
        $acl = new Tc_Acl();
        $aclHelper = new Tc_Helper_Acl(null, array('acl' => $acl));
        Zend_Controller_Action_HelperBroker::addHelper($aclHelper);

    }

    protected function _initJquery() {
        $this->bootstrap('layout');
        $layout = $this->getResource('layout');
        $view = $layout->getView();
        $view->addHelperPath("ZendX/JQuery/View/Helper", "ZendX_JQuery_View_Helper");
    }

    protected function _initLayoutHelper() {
        $this->bootstrap('frontController');
        Zend_Controller_Action_HelperBroker::addHelper(new Tc_Helper_LayoutLoader());
    }

    protected function _initNavPlugin() {
        $this->bootstrap('frontController');
        Zend_Controller_Action_HelperBroker::addHelper(new Tc_Helper_ModuleNavigation());
    }

}

